import request from '@/utils/request'

export function getHouseList(query) {
  return request({
    url: '/hotel/house/getHouseList',
    method: 'get',
    params: query
  })
}

export function getElongHouseList(query) {
  return request({
    url: '/hotel/house/getElongHouseList',
    method: 'get',
    params: query
  })
}

// 酒店添加物理房型
export function postAddElongHouse(data) {
  return request({
    url: '/hotel/house/postAddElongHouse',
    method: 'post',
    data: data
  })
}

// 修改房型维度的数据
export function postUpdateHouseDimension(data) {
  return request({
    url: '/hotel/house/postUpdateHouseDimension',
    method: 'post',
    data: data
  })
}

// 批量开关房
export function postBatchSwitchRoom(data) {
  return request({
    url: '/hotel/house/postBatchSwitchRoom',
    method: 'post',
    data: data
  })
}

// 房型下线
export function postShelvesHouse(data) {
  return request({
    url: '/hotel/house/postShelvesHouse',
    method: 'post',
    data: data
  })
}

// 更新房型名称
export function postUpdateRoomName(data) {
  return request({
    url: '/hotel/house/postUpdateRoomName',
    method: 'post',
    data: data
  })
}